package com.ssii.www.myproject.query;

import com.github.wenhao.jpa.Specifications;
import com.ssii.www.myproject.domain.Permission;
import lombok.Data;
import org.apache.commons.lang.StringUtils;
import org.springframework.data.jpa.domain.Specification;
@Data
public class PermissionQuery extends BaseQuery {

  private Long role_id;

  @Override
  public Specification createSpec() {
    Specification<Permission> specification = Specifications.<Permission>and()
      .eq(role_id!=null,"role_id",role_id).build();
    return specification;
  }
}
